<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script src="http://localhost/jumei/Static/js/jquery-1.7.2.min.js"></script>
	<script src="http://localhost/jumei/Application/Index/View/Public/js/index.js"></script>
	<link rel="stylesheet" type="text/css" href="http://localhost/jumei/Application/Index/View/Public/css/style.css"/>
</head>
<body>
	<!--网页右侧导航条开始-->
	<div id="web-left">
		<ul class="top">
			<li class="login">
				<a href="">
					<span class="login-logo"></span>
				</a>
				<div class="display-box">
					<span class="trigon"></span>
					<span class="box-close"></span>
					    <?php if($hd['session']['uid']&&$hd['session']['user']){ ?>
						<!--登陆后替换部分-->
						<div class="login-after">
							<p class="login-logo"></p>
							<p class="username">用户名：<?php echo $hd['session']['user'];?></p>
						</div>
						<!--登陆后替换部分结束-->
					<?php }else{ ?>
						<!--未登录替换-->
						<p class="login-logo-no"></p>
						<p class="login-reg">
							你好！请
							<a href="<?php echo U('Login/index');?>">登录</a>
							 | 
							 <a href="<?php echo U('Reg/index');?>">注册</a>
						</p>
						<!--未登录替换结束-->
					<?php } ?>
					<p class="my-order-box">
						<a href="<?php echo U('Center/index');?>" class="my-order">我的订单</a>
						<a href="<?php echo U('Center/index');?>" class="my-collect">我的收藏</a>
					</p>
				</div>
			</li>
			<li class="shop-car">
				<a href="<?php echo U('Cart/index');?>">
					<span class="top-line"></span>
					<span class="bottom-line"></span>
					<span class="car-logo"></span>
					<span class="text">购物车</span>
					<span class="num">
						    <?php if($hd['session']['cart']['total_rows']){ ?>
							<?php echo $hd['session']['cart']['total_rows'];?>
						<?php }else{ ?>
							0
						<?php } ?>
					</span>
				</a>
			</li>
			<li class="my-money">
				<a href="<?php echo U('Center/index');?>">
					<span></span>
				</a>
				<div class="display-box-l">
					我的资产
					<span class="trigon"></span>
				</div>
			</li>
			<li class="my-hope">
				<a href="<?php echo U('Center/index');?>">
					<span></span>
				</a>
				<div class="display-box-l">
					我的心愿单
					<span class="trigon"></span>
				</div>
			</li>
			<li class="my-look">
				<a href="<?php echo U('Center/index');?>">
					<span></span>
				</a>
				<div class="display-box-l">
					我看过的
					<span class="trigon"></span>
				</div>
			</li>
			<li class="my-want">
				<a href="<?php echo U('Center/index');?>">
					<span>充</span>
				</a>
				<div class="display-box-l">
					我要充值
					<span class="trigon"></span>
				</div>
			</li>
		</ul>
		<ul class="bottom">
			<li class="code">
				<a href="">
					<span></span>
				</a>
			</li>
			<li class="kefu">
				<a href="">
					<span></span>
				</a>
			</li>
		</ul>
		<div class="top-back">
				<a href="javascript:;">
					<span></span>
				</a>
				<div class="display-box display-box-l">
					返回顶部
					<span class="trigon"></span>
				</div>
		</div>
	</div>
	<!--网页右侧导航条结束-->
	<!--头部开始-->
	<div id="top">
		<div class="top-box">
			<ul class="welcome">
				    <?php if($hd['session']['uid']&&$hd['session']['user']){ ?>
					<!--替换-------------------------------->
					<li>欢迎您,</li>
					<li><a href="<?php echo U('Center/index');?>" class="login"><?php echo $hd['session']['user'];?></a></li>
					<li>[ <a href="<?php echo U('Common/out');?>" class="login">退出</a> ]</li>
					<!-- 登陆替换结束 -->
				<?php }else{ ?>
					<!-- 未登录替换 -->
					<li>欢迎来到聚美！</li>
					<li><a href="<?php echo U('Login/index');?>">请登录</a></li>
					<li><a href="<?php echo U('Reg/index');?>">快速注册</a></li>
					<!-- 未登录替换结束 -->
				<?php } ?>
			</ul>
			<p class="city">送至 <span>北京</span><span class="city-logo"></span></p>
			<ul class="right">
				<li><a href="<?php echo U('Center/index');?>">订单查询</a></li>
				<li class="collect">
					<span class="collect-logo"></span>
					<a href="<?php echo U('Center/index');?>">收藏的品牌</a>
				</li>
				<li class="myjumei">
					<a href="<?php echo U('Center/index');?>">我的聚美</a>
					<span class="myjumei-logo"></span>
					<ul class="myjumei-list">
						<li><a href="<?php echo U('Center/index');?>">我的订单</a></li>
						<li><a href="<?php echo U('Center/index');?>">我的足迹</a></li>
					</ul>
				</li>
				<li class="phone"><span class="line"></span><span class="phone-logo"></span><a href="">手机聚美</a></li>
				<li class="koubei">
					<a href=""><span class="koubei-logo"></span>口碑中心</a></li>
				<li class="look">
					<span class="line"></span>
					<a href=""><span class="look-logo"></span>查看分类</a></li>
				<li class="more">
					<a href="">更多</a>
					<span class="more-logo"></span>
				</li>
			</ul>
		</div>
	</div>
	<!--头部结束-->
<!--搜索栏和黑色导航开始-->
<div id="seach-black" style="background-color: #FFFFFF;">
	<!--搜索栏开始-->
	<div id="seach-box">
		<div id="seach">
			<a href="<?php echo U('Index/index');?>" class="web-logo"></a>
			<a href="<?php echo U('Index/index');?>" class="web-logo-2"></a>
			<div class="seach-center">
				<form action="" method="post" class="seach-form">
					<input type="text" name="" id="seach-text" />
					<input type="submit" value="搜美妆" class="seach-submit"/>
				</form>
				<ul class="hotword">
					<?php foreach ($hotCate as $k=>$v){?>
						<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a><span class="line"></span></li>
					<?php }?>
				</ul>
			</div>
			<div class="shop-box">
				<a href="<?php echo U('Cart/index');?>" class="shop-car">
					<img src="http://localhost/jumei/Application/Index/View/Public/images/car.gif" alt="" />
					<p class="car-text">去购物车结算</p>
					<span class="car-logo"></span>
				</a>
				<ul class="cart-good-list">
					    <?php if(!$hd['session']['cart']['goods']){ ?>
						<li class="null">
							<p>购物车中还没有商品，</p>
							<p>快去挑选心爱的商品吧！</p>
						</li>
					<?php }else{ ?>
						<?php foreach ($hd['session']['cart']['goods'] as $k=>$v){?>
							<li class="cart-good">
								<img src="http://localhost/jumei/<?php echo $v['options']['logo'];?>" alt="" class="cart-good-img" />
								<a href="<?php echo U('Content/index',array('gid'=>$v['id']));?>" class="cart-good-title"><?php echo $v['name'];?></a>
								<p class="cart-good-money"><span>￥<?php echo $v['price'];?></span> x <?php echo $v['num'];?></p>
							</li>
						<?php }?>
						<div class="bottom-go">
							<div class="money-left">
								<p class="good-num">
									共 <span><?php echo $hd['session']['cart']['total_rows'];?></span> 件商品
								</p>
								<p class="good-money">
									共计<span class="logo">￥</span><span><?php echo $hd['session']['cart']['total'];?></span>
								</p>
							</div>
							<a href="<?php echo U('Cart/index');?>" class="go-pay">去购物车结算</a>
						</div>
					<?php } ?>
				</ul>
			</div>
		</div>
	</div>
	<!--搜索栏结束-->
	<!--黑色导航栏-->
	<div id="black-nav">
		<div class="black-nav-box">
			<ul class="nav-list">
				<li class="home"><a href="<?php echo U('Index/index');?>">首页</a></li>
				<li>
					<a href="<?php echo U('Index/index');?>" class="nav-title">极速免税店</a>
					<span class="flag"></span>
				</li>
				<li class="nav-mall">
					<a href="<?php echo U('Index/index');?>" class="nav-title">美妆商城</a>
					<span class="line"></span>
					<div class="mall-menu">
						<div class="left-img-box">
							<a href="<?php echo U('List/index',array('cid'=>7));?>" class="left-img"><img src="http://localhost/jumei/Application/Index/View/Public/images/30573_254_135_003-web.jpg" alt="" /></a>
							<a href="<?php echo U('List/index',array('cid'=>7));?>" class="left-img"><img src="http://localhost/jumei/Application/Index/View/Public/images/30573_254_135_005-web.jpg" alt="" /></a>
						</div>
						<ul class="right-cate-box" style="margin-top: 10px;">
							<?php foreach ($headData as $ka=>$va){?>
								<li class="category">
									<p class="ctitle">
										<span class="cate-logo1" ></span>
										<?php echo $va['cname'];?>
									</p>
									<div class="cate-son-box">
										<?php foreach ($va['son'] as $kk=>$vv){?>
											<a href="<?php echo U('List/index',array('cid'=>$vv['cid']));?>"><?php echo $vv['cname'];?></a>
										<?php }?>
									</div>
								</li>
							<?php }?>
						</ul>
					</div>
				</li>
				<li><a href="<?php echo U('Index/index');?>" class="nav-title">服装运动</a></li>
				<li><a href="<?php echo U('Index/index');?>" class="nav-title">鞋包配饰</a></li>
				<li>
					<a href="<?php echo U('Index/index');?>" class="nav-title">正品保证</a>
					<span class="line"></span>
				</li>
			</ul>
			<ul class="nav-right">
				<li><a href=""><span class="logo1"></span></a></li>
				<li><a href=""><span class="logo2"></span></a></li>
				<li><a href=""><span class="logo3"></span></a></li>
			</ul>
		</div>
	</div>
	<!--黑色导航栏结束-->
</div>
<!--搜索框和黑色导航合并结束-->